package edu.sctu.xialei.May.day20150511one;

/**
 * Created by Administrator on 2015/5/11 0011.
 */
public class PrintDog {
    public static void main(String[] args) {

        Dog dog1 = new Dog("猪阴痣","黑色");
        Dog dog2 = new Dog(20,"混天绫", (float) 200.00,"吃饭");
        Dog dog3 = new Dog(10,"小强", (float) 150.50,"睡觉","洗澡");

        Dog []dog = {dog1,dog2,dog3};

        printDog(dog);

    }

    public static void printDog(Dog[] dogs){
        for (int count = 0; count <= dogs.length ; count++) {
            System.out.println(dogs[count].name);
        }

    }
}
